package com.sc.javaee.service.impl;

import com.sc.javaee.mapper.CategoriesMapper;
import com.sc.javaee.pojo.Categories;
import com.sc.javaee.pojo.Products;
import com.sc.javaee.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoriesServiceImpl implements CategoriesService {
    @Autowired
    CategoriesMapper mapper;
    @Override
    public List<Products> classification(Categories p) {
        return mapper.classification(p);
    }
    @Override
    public List<Products> fuzzyQuery(Products p) {
        return mapper.fuzzyQuery(p);
    }

    @Override
    public List<Products> dynamicQuery(Integer categoryId) {
        return null;
    }
}
